package com.gameGroups.ServiceImpl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gameGroups.Dto.GiveLikeDto;
import com.gameGroups.Mapper.GiveLikeNumberMapper;
import com.gameGroups.Service.GiveLikeNumberService;
@Service
public class GiveLikeNumberServiceImpl implements GiveLikeNumberService{
	@Autowired
	private GiveLikeNumberMapper giveLikeNumberMapper;
	public List<GiveLikeDto> queryGiveLikeNumberList(String uid) {
		return giveLikeNumberMapper.queryGiveLikeNumberList(uid);
	}

	public Integer addGiveLike(GiveLikeDto giveLikeDto) {
		return giveLikeNumberMapper.addGiveLike(giveLikeDto);
	}

	public Integer deleteGiveLike(GiveLikeDto giveLikeDto) {
		return giveLikeNumberMapper.deleteGiveLike(giveLikeDto);
	}

	public Integer addWorksGiveLike(int wid) {
		return giveLikeNumberMapper.addWorksGiveLike(wid);
	}

	public Integer deleteWorksGiveLike(int wid) {
		return giveLikeNumberMapper.deleteWorksGiveLike(wid);
	}

	public List<GiveLikeDto> queryGiveLikeWorks(String sid) {
		return giveLikeNumberMapper.queryGiveLikeWorks(sid);
	}

	public Integer updateGiveLike(int uid, String pName) {
		return giveLikeNumberMapper.updateGiveLike(uid,pName);
	}

}
